package com.personal.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.personal.pojo.ResourcesImg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "ResourcesVO", description = "资源文章展示VO")
public class ResourcesVO {

    @ApiModelProperty("资源id")
    private Integer id;

    @ApiModelProperty("资源发布人id")
    private Integer userId;

    @ApiModelProperty("发布人头像")
    private String face;

    @ApiModelProperty("资源标题")
    private String name;

    @ApiModelProperty("资源分类id")
    private Integer catId;

    @ApiModelProperty("资源分类名称")
    private String catName;

    @ApiModelProperty("销量")
    private Integer sellCount;

    @ApiModelProperty("资源内容")
    private String content;

    @ApiModelProperty("资源浏览量")
    private Long viewCount;

    @ApiModelProperty("资源原价格")
    private Integer priceNormal;

    @ApiModelProperty("会员价格")
    private String priceVip;

    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone = "GMT+8")
    private Date createTime;
    
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("资源图片地址")
    private List<ResourcesImg> resourcesImgList;

}
